/**
 * @file bsp_gsensor.h
 * @brief 
 * @author  ()
 * @version 1.0
 * @date 2024-09-13
 * @ingroup bsp
 * @copyright Copyright (C) 2019 Queclink Wireless Solutions (ShenZhen) Co., Ltd. All Rights Reserved.
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2024-09-13 <td>1.0     <td>     <td>内容
 * </table>
 */
#ifndef __BSP_GSENSOR_H
#define __BSP_GSENSOR_H

#include <stdint.h>


#ifdef __cplusplus
extern "C" {
#endif

int32_t bsp_gsensor_init(void);
void gsensor_int1_enable(void (*isr)(void *ptr), void *ptr);
void gsensor_int1_disable(void);

bool bsp_gsensor_get_power_status(void);

void gsensor_spi_select(void);                   /* access enable */
void gsensor_spi_deselect(void);                 /* access disable */
ssize_t gsensor_spi_write(const void *data, size_t size); /* write to sensor */
ssize_t gsensor_spi_read(void *data, size_t size);        /* read from sensor */
bool gsensor_int1_extra_sleep_en(void);


#ifdef __cplusplus
}
#endif


#endif